Skip to content

Conversation

@juliannagele
Copy link
Member

Avoid inserting freeze when scalarizing extend-extract if all extracts would lead to UB on poison. (llvm#164683)
This change aims to avoid inserting a freeze instruction between the
load and bitcast when scalarizing extend-extract. This is particularly
useful in combination with
llvm#164682, which can then
potentially further scalarize, provided there is no freeze.

alive2 proof: https://alive2.llvm.org/ce/z/W-GD88

(cherry picked from commit 28a20b4)

Try to scalarize vector loads feeding bitcast instructions. (llvm#164682)
This change aims to convert vector loads to scalar loads, if they are
only converted to scalars after anyway.

alive2 proof: https://alive2.llvm.org/ce/z/U_rvht

(cherry picked from commit 8280070)

…t if all extracts would lead to UB on poison. (llvm#164683)

This change aims to avoid inserting a freeze instruction between the
load and bitcast when scalarizing extend-extract. This is particularly
useful in combination with
llvm#164682, which can then
potentially further scalarize, provided there is no freeze.

alive2 proof: https://alive2.llvm.org/ce/z/W-GD88

(cherry picked from commit 28a20b4)
…tions. (llvm#164682)

This change aims to convert vector loads to scalar loads, if they are
only converted to scalars after anyway.

alive2 proof: https://alive2.llvm.org/ce/z/U_rvht

(cherry picked from commit 8280070)
@juliannagele juliannagele requested a review from fhahn November 21, 2025 19:11
@juliannagele juliannagele requested a review from a team as a code owner November 21, 2025 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant